package com.itheima.article.service;

import com.itheima.article.dto.ArticleHomeDto;
import com.itheima.article.dto.ArticleInfoDto;
import com.itheima.article.pojo.ApArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.article.vo.ArticleInfo;
import com.itheima.common.vo.PageResultVo;
import com.itheima.common.vo.ResultVo;

import java.util.Map;

/**
 * @description <p>已发布的文章信息 业务接口</p>
 *
 * @version 1.0
 * @package com.itheima.article.service
 */
public interface ApArticleService extends IService<ApArticle> {

    /**
     * 同步自媒体文章到文章微服
     * @param dto
     */
    void saveArticleInfo(ArticleInfoDto dto);

    PageResultVo<ApArticle> findPage(ArticleHomeDto dto,int loadType);

    ArticleInfo loadArticleInfo(Map<String, String> paramMap);

}
